package com.cjkj.purchase.domain;

import com.cjkj.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.cjkj.common.annotation.Excel;

/**
 * 采购材料登记信息对象 purchase_info
 * 
 * @author cjkj
 * @date 2025-02-20
 */
public class PurchaseInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 采购信息ID */
    private Long purchaseId;

    /** 设备类型 */
    @Excel(name = "设备类型")
    private String equipmentType;

    /** 供货商 */
    @Excel(name = "供货商")
    private String supplierName;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String productName;

    /** 型号规格 */
    @Excel(name = "型号规格")
    private String model;

    /** 单位 */
    @Excel(name = "单位")
    private String unit;

    /** 库存 */
    @Excel(name = "库存")
    private Long inventory;

    /** 删除标志（0存在 2删除） */
    private String delFlag;

    public void setPurchaseId(Long purchaseId) 
    {
        this.purchaseId = purchaseId;
    }

    public Long getPurchaseId() 
    {
        return purchaseId;
    }
    public void setEquipmentType(String equipmentType) 
    {
        this.equipmentType = equipmentType;
    }

    public String getEquipmentType() 
    {
        return equipmentType;
    }
    public void setSupplierName(String supplierName) 
    {
        this.supplierName = supplierName;
    }

    public String getSupplierName() 
    {
        return supplierName;
    }
    public void setProductName(String productName) 
    {
        this.productName = productName;
    }

    public String getProductName() 
    {
        return productName;
    }
    public void setModel(String model) 
    {
        this.model = model;
    }

    public String getModel() 
    {
        return model;
    }
    public void setUnit(String unit) 
    {
        this.unit = unit;
    }

    public String getUnit() 
    {
        return unit;
    }
    public void setInventory(Long inventory) 
    {
        this.inventory = inventory;
    }

    public Long getInventory() 
    {
        return inventory;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("purchaseId", getPurchaseId())
            .append("equipmentType", getEquipmentType())
            .append("supplierName", getSupplierName())
            .append("productName", getProductName())
            .append("model", getModel())
            .append("unit", getUnit())
            .append("remark", getRemark())
            .append("inventory", getInventory())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
